<!DOCTYPE html>
<html lang="en">
  <head>
    <title>CoChannel Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/CoChannel" class="dashAnchor"></a>
    <a title="CoChannel Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">SwiftCoroutine 2.1.9 Docs</a> (88% documented)</p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">SwiftCoroutine Reference</a>
        <img id="carat" src="../img/carat.png" />
        CoChannel Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/CoChannel.html">CoChannel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoChannel/BufferType.html">– BufferType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoChannel/Receiver.html">– Receiver</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoChannel/Sender.html">– Sender</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoFuture.html">CoFuture</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoPromise.html">CoPromise</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/CoScope.html">CoScope</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/CoChannelError.html">CoChannelError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/CoFutureError.html">CoFutureError</a>
              </li>
              <li class="nav-group-task">
                <a href="../Enums/CoroutineError.html">CoroutineError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/DispatchQueue.html">DispatchQueue</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/Publisher.html">Publisher</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/URLSession.html">URLSession</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/CoCancellable.html">CoCancellable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/CoroutineScheduler.html">CoroutineScheduler</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/Coroutine.html">Coroutine</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>CoChannel</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">CoChannel</span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">CoChannel</span><span class="p">:</span> <span class="kt"><a href="../Protocols/CoCancellable.html">CoCancellable</a></span></code></pre>

                </div>
              </div>
            <p>Channel is a non-blocking primitive for communication between a sender and a receiver.
Conceptually, a channel is similar to a queue that allows to suspend a coroutine on receive if it is empty or on send if it is full.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    Always <code>close()</code> or <code>cancel()</code> a channel when you are done to resume all suspended coroutines by the channel.

</div>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">channel</span> <span class="o">=</span> <span class="kt">CoChannel</span><span class="o">&lt;</span><span class="kt">Int</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">capacity</span><span class="p">:</span> <span class="mi">1</span><span class="p">)</span>

<span class="kt">DispatchQueue</span><span class="o">.</span><span class="nf">global</span><span class="p">()</span><span class="o">.</span><span class="n">startCoroutine</span> <span class="p">{</span>
   <span class="k">for</span> <span class="n">i</span> <span class="k">in</span> <span class="mi">0</span><span class="o">..&lt;</span><span class="mi">100</span> <span class="p">{</span>
       <span class="k">try</span> <span class="n">channel</span><span class="o">.</span><span class="nf">awaitSend</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="n">channel</span><span class="o">.</span><span class="nf">close</span><span class="p">()</span>
<span class="p">}</span>

<span class="kt">DispatchQueue</span><span class="o">.</span><span class="nf">global</span><span class="p">()</span><span class="o">.</span><span class="n">startCoroutine</span> <span class="p">{</span>
    <span class="k">for</span> <span class="n">i</span> <span class="k">in</span> <span class="n">channel</span><span class="o">.</span><span class="nf">makeIterator</span><span class="p">()</span> <span class="p">{</span>
        <span class="nf">print</span><span class="p">(</span><span class="s">"Receive"</span><span class="p">,</span> <span class="n">i</span><span class="p">)</span>
    <span class="p">}</span>
    <span class="nf">print</span><span class="p">(</span><span class="s">"Done"</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC10BufferTypeO"></a>
                    <a name="//apple_ref/swift/Enum/BufferType" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC10BufferTypeO">BufferType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p><code><a href="../Classes/CoChannel.html">CoChannel</a></code> buffer type.</p>

                        <a href="../Classes/CoChannel/BufferType.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">BufferType</span> <span class="p">:</span> <span class="kt">Equatable</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC10bufferTypeACyxGAC06BufferF0Oyx_G_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(bufferType:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC10bufferTypeACyxGAC06BufferF0Oyx_G_tcfc">init(bufferType:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes a channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n"><a href="../Classes/CoChannel.html#/s:14SwiftCoroutine9CoChannelC10bufferTypeAC06BufferF0Oyx_Gvp">bufferType</a></span> <span class="nv">type</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/BufferType.html">BufferType</a></span> <span class="o">=</span> <span class="o">.</span><span class="n">unlimited</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>type</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The type of channel buffer.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC8capacityACyxGSi_tcfc"></a>
                    <a name="//apple_ref/swift/Method/init(capacity:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC8capacityACyxGSi_tcfc">init(capacity:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initializes a channel with <code><a href="../Classes/CoChannel/BufferType.html#/s:14SwiftCoroutine9CoChannelC10BufferTypeO8bufferedyAEyx_GSi_tcAGmlF">BufferType.buffered(capacity:)</a></code> .</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">capacity</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>capacity</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The maximum number of elements that can be stored in a channel.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC10bufferTypeAC06BufferF0Oyx_Gvp"></a>
                    <a name="//apple_ref/swift/Property/bufferType" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC10bufferTypeAC06BufferF0Oyx_Gvp">bufferType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The type of channel buffer.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">bufferType</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/BufferType.html">BufferType</a></span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC4pairAC8ReceiverCyx_G8receiver_AC6SenderCyx_G6sendertvp"></a>
                    <a name="//apple_ref/swift/Property/pair" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC4pairAC8ReceiverCyx_G8receiver_AC6SenderCyx_G6sendertvp">pair</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns tuple of <code><a href="../Classes/CoChannel/Receiver.html">Receiver</a></code> and <code><a href="../Classes/CoChannel/Sender.html">Sender</a></code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">pair</span><span class="p">:</span> <span class="p">(</span><span class="nv">receiver</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/Receiver.html">Receiver</a></span><span class="p">,</span> <span class="nv">sender</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/Sender.html">Sender</a></span><span class="p">)</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/send"></a>
                <a name="//apple_ref/swift/Section/send" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/send"></a>
                  <h3 class="section-name"><p>send</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC6senderAC6SenderCyx_Gvp"></a>
                    <a name="//apple_ref/swift/Property/sender" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC6senderAC6SenderCyx_Gvp">sender</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A <code>CoChannel</code> wrapper that provides send-only functionality.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">sender</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/Sender.html">Sender</a></span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC9awaitSendyyxKF"></a>
                    <a name="//apple_ref/swift/Method/awaitSend(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC9awaitSendyyxKF">awaitSend(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sends the element to this channel, suspending the coroutine while the buffer of this channel is full.
Must be called inside a coroutine.</p>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    CoChannelError when canceled or closed.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">awaitSend</span><span class="p">(</span><span class="n">_</span> <span class="nv">element</span><span class="p">:</span> <span class="kt">Element</span><span class="p">)</span> <span class="k">throws</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>element</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Value that will be sent to the channel.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC10sendFutureyyAA0cF0CyxGF"></a>
                    <a name="//apple_ref/swift/Method/sendFuture(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC10sendFutureyyAA0cF0CyxGF">sendFuture(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds the future&rsquo;s value to this channel when it will be available.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">sendFuture</span><span class="p">(</span><span class="n">_</span> <span class="nv">future</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoFuture.html">CoFuture</a></span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>future</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p><code><a href="../Classes/CoFuture.html">CoFuture</a></code>&lsquo;s value that will be sent to the channel.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC5offerySbxF"></a>
                    <a name="//apple_ref/swift/Method/offer(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC5offerySbxF">offer(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Immediately adds the value to this channel, if this doesn’t violate its capacity restrictions, and returns true.
Otherwise, just returns false.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">offer</span><span class="p">(</span><span class="n">_</span> <span class="nv">element</span><span class="p">:</span> <span class="kt">Element</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>element</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Value that might be sent to the channel.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>true</code> if sent successfully or <code>false</code> if channel buffer is full or channel is closed or canceled.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/receive"></a>
                <a name="//apple_ref/swift/Section/receive" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/receive"></a>
                  <h3 class="section-name"><p>receive</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC8receiverAC8ReceiverCyx_Gvp"></a>
                    <a name="//apple_ref/swift/Property/receiver" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC8receiverAC8ReceiverCyx_Gvp">receiver</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A <code>CoChannel</code> wrapper that provides receive-only functionality.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">receiver</span><span class="p">:</span> <span class="kt"><a href="../Classes/CoChannel/Receiver.html">Receiver</a></span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC12awaitReceivexyKF"></a>
                    <a name="//apple_ref/swift/Method/awaitReceive()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC12awaitReceivexyKF">awaitReceive()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Retrieves and removes an element from this channel if it’s not empty, or suspends a coroutine while the channel is empty.</p>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    CoChannelError when canceled or closed.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">awaitReceive</span><span class="p">()</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Element</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Removed value from the channel.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC13receiveFutureAA0cF0CyxGyF"></a>
                    <a name="//apple_ref/swift/Method/receiveFuture()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC13receiveFutureAA0cF0CyxGyF">receiveFuture()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Creates <code><a href="../Classes/CoFuture.html">CoFuture</a></code> with retrieved value from this channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">receiveFuture</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/CoFuture.html">CoFuture</a></span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code><a href="../Classes/CoFuture.html">CoFuture</a></code> with a future value from the channel.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC4pollxSgyF"></a>
                    <a name="//apple_ref/swift/Method/poll()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC4pollxSgyF">poll()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Retrieves and removes an element from this channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">poll</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Element</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Element from this channel if its not empty, or returns nill if the channel is empty or is closed or canceled.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC11whenReceiveyyys6ResultOyxAA0cD5ErrorOGcF"></a>
                    <a name="//apple_ref/swift/Method/whenReceive(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC11whenReceiveyyys6ResultOyxAA0cD5ErrorOGcF">whenReceive(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds an observer callback to receive an element from this channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">whenReceive</span><span class="p">(</span><span class="n">_</span> <span class="nv">callback</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Result</span><span class="o">&lt;</span><span class="kt">Element</span><span class="p">,</span> <span class="kt"><a href="../Enums/CoChannelError.html">CoChannelError</a></span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>callback</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback that is called when a value is received.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC5countSivp"></a>
                    <a name="//apple_ref/swift/Property/count" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC5countSivp">count</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a number of elements in this channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">count</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC7isEmptySbvp"></a>
                    <a name="//apple_ref/swift/Property/isEmpty" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC7isEmptySbvp">isEmpty</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns <code>true</code> if the channel is empty (contains no elements), which means no elements to receive.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">isEmpty</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/map"></a>
                <a name="//apple_ref/swift/Section/map" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/map"></a>
                  <h3 class="section-name"><p>map</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC3mapyAC8ReceiverCyqd___Gqd__xclF"></a>
                    <a name="//apple_ref/swift/Method/map(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC3mapyAC8ReceiverCyqd___Gqd__xclF">map(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns new <code><a href="../Classes/CoChannel/Receiver.html">Receiver</a></code> that provides transformed values from this <code>CoChannel</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="n">map</span><span class="o">&lt;</span><span class="kt">T</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">transform</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Element</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">T</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CoChannel</span><span class="o">&lt;</span><span class="kt">T</span><span class="o">&gt;.</span><span class="kt"><a href="../Classes/CoChannel/Receiver.html">Receiver</a></span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>transform</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A mapping closure.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>A <code><a href="../Classes/CoChannel/Receiver.html">Receiver</a></code> with transformed values.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/close"></a>
                <a name="//apple_ref/swift/Section/close" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/close"></a>
                  <h3 class="section-name"><p>close</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC5closeSbyF"></a>
                    <a name="//apple_ref/swift/Method/close()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC5closeSbyF">close()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Closes this channel. No more send should be performed on the channel.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">close</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p><code>true</code> if closed successfully or <code>false</code> if channel is already closed or canceled.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC8isClosedSbvp"></a>
                    <a name="//apple_ref/swift/Property/isClosed" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC8isClosedSbvp">isClosed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns <code>true</code> if the channel is closed.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">isClosed</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/cancel"></a>
                <a name="//apple_ref/swift/Section/cancel" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/cancel"></a>
                  <h3 class="section-name"><p>cancel</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC6cancelyyF"></a>
                    <a name="//apple_ref/swift/Method/cancel()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC6cancelyyF">cancel()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Closes the channel and removes all buffered sent elements from it.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">cancel</span><span class="p">()</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC10isCanceledSbvp"></a>
                    <a name="//apple_ref/swift/Property/isCanceled" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC10isCanceledSbvp">isCanceled</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns <code>true</code> if the channel is canceled.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="k">var</span> <span class="nv">isCanceled</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC12whenCanceledyyyycF"></a>
                    <a name="//apple_ref/swift/Method/whenCanceled(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC12whenCanceledyyyycF">whenCanceled(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds an observer callback that is called when the <code>CoChannel</code> is canceled.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">whenCanceled</span><span class="p">(</span><span class="n">_</span> <span class="nv">callback</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>callback</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback that is called when the <code>CoChannel</code> is canceled.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/complete"></a>
                <a name="//apple_ref/swift/Section/complete" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/complete"></a>
                  <h3 class="section-name"><p>complete</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC12whenCompleteyyyycF"></a>
                    <a name="//apple_ref/swift/Method/whenComplete(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC12whenCompleteyyyycF">whenComplete(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Adds an observer callback that is called when the <code>CoChannel</code> is completed (closed, canceled or deinited).</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">whenComplete</span><span class="p">(</span><span class="n">_</span> <span class="nv">callback</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>callback</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback that is called when the <code>CoChannel</code> is completed.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/sequence"></a>
                <a name="//apple_ref/swift/Section/sequence" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/sequence"></a>
                  <h3 class="section-name"><p>sequence</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC12makeIterators03AnyF0VyxGyF"></a>
                    <a name="//apple_ref/swift/Method/makeIterator()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC12makeIterators03AnyF0VyxGyF">makeIterator()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Make an iterator which successively retrieves and removes values from the channel.</p>

<p>If <code>next()</code> was called inside a coroutine and there are no more elements in the channel,
then the coroutine will be suspended until a new element will be added to the channel or it will be closed or canceled.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">makeIterator</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">AnyIterator</span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Iterator for the channel elements.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC8ReceiverC"></a>
                    <a name="//apple_ref/swift/Class/Receiver" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC8ReceiverC">Receiver</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A <code><a href="../Classes/CoChannel.html">CoChannel</a></code> wrapper that provides receive-only functionality.</p>

                        <a href="../Classes/CoChannel/Receiver.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Receiver</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="../Classes/CoChannel.html">CoChannel</a></span><span class="o">.</span><span class="kt">Receiver</span><span class="p">:</span> <span class="kt"><a href="../Protocols/CoCancellable.html">CoCancellable</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC6SenderC"></a>
                    <a name="//apple_ref/swift/Class/Sender" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC6SenderC">Sender</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A <code><a href="../Classes/CoChannel.html">CoChannel</a></code> wrapper that provides send-only functionality.</p>

                        <a href="../Classes/CoChannel/Sender.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">Sender</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt"><a href="../Classes/CoChannel.html">CoChannel</a></span><span class="o">.</span><span class="kt">Sender</span><span class="p">:</span> <span class="kt"><a href="../Protocols/CoCancellable.html">CoCancellable</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/publisher"></a>
                <a name="//apple_ref/swift/Section/publisher" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/publisher"></a>
                  <h3 class="section-name"><p>publisher</p>
</h3>
                </div>
              </div>
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftCoroutine9CoChannelC9publisher7Combine12AnyPublisherVyxAA0cD5ErrorOGyF"></a>
                    <a name="//apple_ref/swift/Method/publisher()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftCoroutine9CoChannelC9publisher7Combine12AnyPublisherVyxAA0cD5ErrorOGyF">publisher()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a publisher that emits elements of this <code>CoChannel</code>.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@inlinable</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">publisher</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">AnyPublisher</span><span class="o">&lt;</span><span class="kt">Element</span><span class="p">,</span> <span class="kt"><a href="../Enums/CoChannelError.html">CoChannelError</a></span><span class="o">&gt;</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/belozierov/SwiftCoroutine" target="_blank" rel="external">Alex Belozierov</a>. All rights reserved. (Last updated: 2020-07-11)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
